package com.cgc999.host.model;

import com.cgc999.host.config.ApiConfig;

import java.io.Serializable;

public class BaseResponseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    public int code;

    public String msg;

    public boolean success() {
        return ApiConfig.getSucceedCode() == code;
    }

    public boolean tokenInvalid() {
        return ApiConfig.getInvalidToken() == code;
    }
    public boolean quitApp(){
        return ApiConfig.getQuitCode() == code;
    }
}
